package cn;

public class Booker {
    private String bookname;
    private int idbook;
    private String writer;
    private String publish;
    private String is_borrow;
    private int userid;

    public Booker() {
    }

    public Booker(int idbook, String bookname, String writer, String publish, String is_borrow, int userid) {
        this.idbook = idbook;
        this.bookname = bookname;
        this.writer = writer;
        this.publish = publish;
        this.is_borrow = is_borrow;
        this.userid = userid;
    }

    public int getIdbook() {
        return idbook;
    }

    public void setIdbook(int idbook) {
        this.idbook = idbook;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getIs_borrow() {
        return is_borrow;
    }

    public void setIs_borrow(String is_borrow) {
        this.is_borrow = is_borrow;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    @Override
    public String toString() {
        return "Booker{" +
                "idbook=" + idbook +
                ", bookname='" + bookname + '\'' +
                ", writer='" + writer + '\'' +
                ", publish='" + publish + '\'' +
                ", is_borrow='" + is_borrow + '\'' +
                ", userid=" + userid +
                '}';
    }
}
